package com.jwdf.uda.ui.adapter.item;

import com.jwdf.uda.bean.PbBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/9/5.
 */
public class QuizDetailItem {
    public final static int TYPE_QUIZ_MAIN = 0;
    public final static int TYPE_QUIZ_MAIN_TXT=1;
    public final static int TYPE_QUIZ_MAIN_IMAGE=2;
//    public final static int TYPE_QUIZ_MAIN_DIVIDER=3;
    public final static int TYPE_PLAN_IMAGES = 3;
    public final static int TYPE_QUIZ_CONCERN = 4;
    public final static int TYPE_TITLE_TAB = 5;
    public final static int TYPE_REPLY_TXT = 6;
    public final static int TYPE_REPLY_IMAGE = 7;
    public final static int TYPE_VOTE_TITLE = 8;
    public final static int TYPE_TAKE_VOTE=9;
    public final static int TYPE_VOTE = 10;
//    public final static int TYPE_VOTE_USER_DIVIDER=12;
    public final static int TYPE_VOTE_TIP=11;
    public final static int CONCERNED_QUIZ=1;
    public final static int NOT_CONCERN_QUIZ=0;
    public int itemType;

    public boolean isConcern;
    public int concernCount;
    public int replyCount;
    public String sortType;
    public boolean hasVoteOption;
    public int voteCount;
    public int planVoteCount;
    public String planName;
    public boolean isCurrentUser;
    public boolean isUserVote;
    public PbBean.PbSignBaseVoteOptionType optionId;
    public int createTime;
    public int answerId;

    public PbBean.PbUserSimple userInfo;
    public String quizTitle;
    public List<PbBean.PbBaseResDescription> quizImageTextDesc;
    public String quizMainDescTxt;
    public String quizMainDescImage;
    public int imageIndex;
    public ArrayList<String> imageUrls;
    public int imageWidth;
    public int imageHeight;
    public int voteIndex;
    public int voteOptionCount;
    public PbBean.PbBaseResVoteOption voteOption;
    public PbBean.PbBaseVoterInfo vote;
    public PbBean.PbBaseQuestionAnswer reply;
    public QuizDetailItem.QuizTab currentTab = QuizTab.REPLY;
    public QuizDetailItem(int itemType) {
        this.itemType = itemType;
    }

    public enum QuizTab {
        REPLY, VOTE
    }
}
